package com.boot.security.model.ao;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.Collection;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 图节点
 * @date 2020/2/18 14:37
 **/

@Data
@SuperBuilder
@NoArgsConstructor
public class Node<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private T element;

    private Collection<Node<T>> parent;

    private Collection<Node<T>> children;

}
